<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<link rel="stylesheet" href="__PUBLIC__/css/inc.css" />
	<title>属性列表</title>
	<script type="text/javascript">
		function del(){
			return confirm('是否删除?');
		}
	</script>
</head>
<body class="bgwhite-1">
	<div class="bbc fm pl10 pt10 pb5">
		<a href="{|U:'GoodsType/index'}" class="white p5 f14 bggray2 a">商品类型</a>
		<a href="{|U:'index',array('gtid'=>$_GET['gtid'])}" class="white p5 f14 bgteal a">属性列表</a>
		<a href="{|U:'add',array('gtid'=>$_GET['gtid'])}" class="white p5 f14 bggray2 a">添加属性</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tsblack tc">acid</th>
				<th class="tsblack">属性名称</th>
				<th class="tsblack">规格</th>
				<th class="tsblack">显示类型</th>
				<th class="pct20 tsblack tc">操作</th>
			</tr>
			<foreach from="$data" value="$g">
				<tr>
					<td class='tc'><span class="b gray2">{$g.acid}</span></td>
					<td class='tc'>{$g.attr_name}</td>
					<td class='tc'>
						<if value='$g.is_spec  eq 1'>
							<span class="orange b">是</span>
						<else/>
							否
						</if>
					</td>
					<td class='tc'>{$g.show_type}</td>
					<td class='tc'>
						<a href="{|U:'edit',array('acid'=>$g['acid'],'gtid'=>$_GET['gtid'])}" class="btn bgteal white">修改</a>
						<a href="{|U:'del',array('acid'=>$g['acid'])}" onclick='return del();' class="btn bgred2 white">删除</a>
					</td>
				</tr>
			</foreach>
		</table>
	</div>
</body>
</html>